#include "compfwk/CIdGenerator.h"

namespace compfwk
{
    CIdGenerator& CIdGenerator::Instance( void )
    {
        static CIdGenerator idgen;

        return idgen;
    }

    CIdGenerator::CIdGenerator( ) : m_seed( 0 )
    {
    }

    CIdGenerator::~CIdGenerator( )
    {
    }

    int CIdGenerator::NewId( void )
    {
        return ++m_seed;
    }
}